block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jan 2008 14:41:26 +0000 (14:41 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jan 2008 14:41:26 +0000 (14:41 +0000)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/examples/blktap

index bd914d58581e40cf861d504ed60948415b683b93..7016e299d1b38129149caa1aceed64b8f6078eda 100644 (file)
@@ -71,9 +71,9 @@ then
 fi
 # some versions of readlink cannot be passed a regular file
 if [ -L "$p" ]; then
-    file=$(readlink -f "$p") || ebusy "$p link does not exist."
+    file=$(readlink -f "$p") || fatal "$p link does not exist."
 else
-    [ -f "$p" ] || { ebusy "$p file does not exist."; }
+    [ -f "$p" ] || { fatal "$p file does not exist."; }
     file="$p"
 fi
 
@@ -85,7 +85,7 @@ fi
 
 if [ "$command" = 'add' ]
 then
-    [ -e "$file" ] || { ebusy $file does not exist; }
+    [ -e "$file" ] || { fatal $file does not exist; }
     success
 fi